package com.ericsson.enap.modules.procLog.job;

import com.ericsson.common.quartz.job.MainJob;
import com.ericsson.common.quartz.service.QuartzTableManager;
import com.ericsson.enap.modules.procLog.task.ImsEdaAlarmTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;

/**
 * @description: EDA-ALARM（从Boss-KPi文件取数据） 五分钟粒度
 * @author: yanghai
 * @create: 2021-07-29
 */
@Lazy(true)
@Component
public class ImsEdaAlarmJob implements MainJob  {
    @Autowired
    private QuartzTableManager quartzTableManager;
    @Autowired
    private ImsEdaAlarmTask imsEdaAlarmTask;

    String jobName="imsEdaAlarmJob";


    @Override
    public void doTask() {
        System.out.println("ImsEdaAlarmJob start.....");
        imsEdaAlarmTask.execute();
//        quartzTableManager.addManualTaskJob(jobName,jobName,jobName,jobName,
//                ManualQuartzJob.class,"0 0/5 * * * ?",imsEdaAlarmTask);
    }
}
